#!/usr/bin/env node


async function logger(ctx,next)=>{//M-ms
  const start = Date.now();
  next();
  const end = Date.now();
  ctx.set('cost',end-start);
 // ctx.header.cost = end-start;
  //console.log(`cost；${end-start}`)
})
app.use((ctx,next)=>{//M-hello
  ctx.body='hello world'
})
app.listen(3000);
console.log('hello world');
